-- GENERATED SPELL FOR [Lykul Wasp] --


function spell0_17732(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_17732', 657, 1)
end

function spell1_17732(pUnit, Event) --@Poison Spit,n/a--
pUnit:FullCastSpellOnTarget(32330,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17732', 12500, 1)
end

function Sorts_17732(pUnit, Event)
local choix_sorts_17732 = math.random(0, 1)
if choix_sorts_17732 == 0 then
pUnit:RegisterEvent('spell0_17732', 1, 1)
end
if choix_sorts_17732 == 1 then
pUnit:RegisterEvent('spell1_17732', 1, 1)
end
end

function mob17732_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17732', math.random(1500, 3000), 1)
end

function mob17732_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17732_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17732_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17732, 1, 'mob17732_Action')
RegisterUnitEvent(17732, 2, 'mob17732_Leave')
RegisterUnitEvent(17732, 3, 'mob17732_Kill')
RegisterUnitEvent(17732, 4, 'mob17732_Die')
